#include <stdio.h>
#include <stdlib.h>

void Strcat_1(char front[], const char behind[]) 
{
    int i = 0;
    int j = 0;
    while (front[i] != '\0') 
    {
        i++;
    }
    while (behind[j] != '\0') 
    {
        front[i] = behind[j];
        i++;
        j++;
    }
    front[i] = '\0';
}

int main() {
    char a[100] = "Hello, ";
    const char b[10] = "world!";
    Strcat_1(a, b);
    printf("使用Strcat_1函数拼接后的字符串: %s\n", a);
    system("pause");
    return 0;
}
